<?php if (!defined('THINK_PATH')) exit();?><style>
    .upOut{
        position: relative;
    }
    .upIn{
        position: absolute;
        top:-8px;
        right:10px;
        cursor: pointer;
        display: none;
    }
    .upOut:hover .upIn{
        display: block;
    }
</style>
<?php if(is_array($path)): $i = 0; $__LIST__ = $path;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$p): $mod = ($i % 2 );++$i;?><div class="col-xs-6 col-md-3 upOut">
        <i class="fa fa-times-circle upIn"></i>
        <a href="#" class="thumbnail">
            <img src="/c76/c76shop<?php echo ($p); ?>" alt="...">
            <input type="text" name="ggPic[]" value="<?php echo ($p); ?>">
        </a>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>
<script>
    $('.upIn').on('click',function(){
        var $this = $(this);
        var path = $(this).closest('.upOut').find('[name=logo]').val();
        $.post("<?php echo u('admin/brand/ajaxDel');?>",{path:path},function(data){
            $this.closest('.upOut').remove();
        })
    })
</script>